<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		 <input id="inputId" type="text" value="Java JS"/><br/>
		 <input type="button" onclick="clickMe()"  value="点我"/>
		
		<script type="text/javascript">
			function clickMe() {
				var input1 = document.getElementById("inputId");
				console.log(input1);
				console.log(input1.value);
				console.log(input1.type);
				var inputs = document.getElementsByTagName("input");
				console.log(inputs);
				console.log(inputs[0]);
			}
		</script>
	</body>
</html>
